function edit(id) {
    window.location.href = editUrl + "&id=" + id;
}
/*
 * 
 */
function del(id) {
    if (id > 0) {
        //eg1       
        layer.confirm('确定删除吗？', function (index) {
            $.ajax({
                type: "POST",
                dataType: "json",
                url: delUrl,
                data: {
                    id: id
                },
                success: function (data) {
                    dialog.msg(data.msg);
                    if (data.flag) {
                        window.location.reload();
                    }
                }
            });
        });
    }
}